/**
 * 如果redirectAction为空就登錄成功以后返回到首頁
 * @param {} redirectAction
 * @author lufeng
 */
var ajaxlogin=function(redirectAction,email){
	var uid=getCookie("UID");
	if(uid&&uid.length>1){
		setCookie('LURL',"",0);
		window.location.href=redirectAction;
		return;
	}
	try{
		var url=redirectAction;
		var _index=redirectAction.indexOf('wenda');
		if(_index>=0){
			redirectAction=redirectAction.substring(_index+5,redirectAction.length);
		}
		
		if(url==null||url==''){
			redirectAction=basePath;
		}else{
			setCookie('LURL',redirectAction,1);
		}
	}catch(e){alert(e.message)}
	DZQCheckForUser(url,email);
}
